package main

import (
	"flag"
	"fmt"
	"go-deploy-kubenetes/menu"
)

var master string
var worker string

func init() {
	flag.StringVar(&master, "master", "", "kubernetes master url")
	flag.StringVar(&worker, "worker", "", "kubernetes worker url, using comma ‘,’ separated list")
	flag.Parse()
}

func main() {

	fmt.Println(master, worker)

	var option string
	menu.ShowMenu()
	for {
		fmt.Scanln(&option)
		if option == "exit" {
			break
		} else if option == "help" {
			menu.ShowMenu()
		} else {
			fmt.Println(option)
		}
	}
}
